/**
 * 路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      isLink：        是否超链接菜单，开启外链条件，`1、isLink:true 2、链接地址不为空`
 *      isHide：        是否隐藏此路由
 *      isKeepAlive：   是否缓存组件状态
 *      isAffix：       是否固定在 tagsView 栏上
 *      isIframe：      是否内嵌窗口，，开启条件，`1、isIframe:true 2、链接地址不为空`
 *      roles：         当前路由权限标识，取角色管理。控制路由显示、隐藏。超级管理员：admin 普通角色：common
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * }
 */

export const scoreRouter = {
    path: '/score',
    name: 'score',
    component: () => import('/@/layout/routerView/parent.vue'),
    redirect: '/assessment/setting',
    meta: {
      title: 'message.router.assessment',
      isLink: '',
      isHide: false,
      isKeepAlive: true,
      isAffix: false,
      isIframe: false,
      roles: ['admin'],
      icon: 'fa fa-sliders',
    },
    children: [
      {
        path: '/assessment/setting',
        name: 'assessmentSetting',
        component: () => import('/@/views/assessment/setting/index.vue'),
        meta: {
          title: 'message.router.assessmentSetting',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-cog',
        },
      },
      {
        path: '/assessment/item',
        name: 'assessmentItem',
        component: () => import('/@/views/assessment/item/index.vue'),
        meta: {
          title: 'message.router.assessmentItem',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-cog',
        },
      },
      {
        path: '/score/allscore',
        name: 'scoreAllScore',
        component: () => import('/@/views/score/allscore/index.vue'),
        meta: {
          title: 'message.router.scoreAllScore',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-bullhorn',
        },
      },
      {
        path: '/score/submitnum',
        name: 'scoreSubmitNum',
        component: () => import('/@/views/score/submitNum/index.vue'),
        meta: {
          title: 'message.router.scoreSubmitNum',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-bullhorn',
        },
      },
      {
        path: '/score/abcdnum',
        name: 'scoreAbcdNum',
        component: () => import('/@/views/score/abcdNum/index.vue'),
        meta: {
          title: 'message.router.scoreAbcdNum',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-bullhorn',
        },
      },
      {
        path: '/score/avgscore',
        name: 'scoreAvgScore',
        component: () => import('/@/views/score/avgscore/index.vue'),
        meta: {
          title: 'message.router.scoreAvgScore',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-bullhorn',
        },
      },
      {
        path: '/score/comsetting',
        name: 'scoreComsetting',
        component: () => import('/@/views/score/comsetting/index.vue'),
        meta: {
          title: 'message.router.scoreComsetting',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-star-half-o',
        },
      },
      {
        path: '/score/comres',
        name: 'scoreComRes',
        component: () => import('/@/views/score/comres/index.vue'),
        meta: {
          title: 'message.router.scoreComRes',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-cog',
        },
      },
    ],
  }

